Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/s3/manager: Suppress WriterAt which can bypass Windows optimizations. #1791

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

skmcgrail
Copy link
Member

@skmcgrail skmcgrail commented Aug 5, 2022

Fixes issue with Go 1.19 discovered in the S3 transfer manager's windows upload and downloader buffer pools. It looks like the update to Go 1.19 changes the code path that is used by the pool because io.NopCloser was updated to forward WriterTo if the underlying Writer implemented it. Looks likes we'd made some assumptions about this behavior not being present. This PR suppresses the WriterTo of the buffer pool to prevent the unexpected usage.

@skmcgrail skmcgrail requested a review from jasdel August 5, 2022 04:40
@jasdel jasdel changed the title Suppress WriterAt which can bypass Windows optimizations. feature/s3/manager: Suppress WriterAt which can bypass Windows optimizations. Aug 5, 2022
@jasdel jasdel merged commit 8d6ca65 into aws:main Aug 5, 2022
@cgang
Copy link

cgang commented Feb 24, 2023

It's a little confusion that title & code suggest that this commit is suppressing WriterAt, while above comment suggest suppressing WriterTo, could you please clarify which one is correct? @skmcgrail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants